﻿using System;
using System.ComponentModel;

namespace Monti.Docking
{
   /// <summary>
   /// Standard dock content event arguments.
   /// </summary>
   public class DockContentEventArgs : EventArgs
   {
      /// <summary>
      /// Dock content that caused the event.
      /// </summary>
      public object DockData { get; private set; }

      /// <summary>
      /// Initializes a new dock content event arugment object.
      /// </summary>
      /// <param name="data">Data that caused the event.</param>
      public DockContentEventArgs (object data)
      {
         DockData = data;
      }
   }

   /// <summary>
   /// Cancel dock content event arguments. Used to cancel request.
   /// </summary>
   public class DockContentCancelEventArgs : CancelEventArgs
   {
      /// <summary>
      /// Dock content that caused the event.
      /// </summary>
      public object DockData { get; private set; }

      /// <summary>
      /// Initializes a new dock content cancel event arugment object.
      /// </summary>
      /// <param name="data">Data that caused the event.</param>
      public DockContentCancelEventArgs (object data)
      {
         DockData = data;
      }
   }
}
